#include <stdio.h>
int main(){
	char s[1000];
	char shu[1000];
	char str[1000];
	int i,n=0,l=0,t;
	gets(s);
	for(i=0,n=0;s[i];i++){
		if((s[i]>='A'&&s[i]<='Z')||(s[i]>='a'&&s[i]<='z')){
			str[n++]=s[i];
			t=n;
		}
		if(s[i]>=48&&s[i]<=57)
		shu[l++]=s[i];
	}
	for(i=0;shu[i];i++){
		str[t++]=shu[i];
	}
	puts(str);
	printf("\n");
}
